/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-27<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-27<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "BOOK_PAGE_ITEM_INFO")
public class SysPageItemInfo {
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "PAGE_ID")
    private Long pageId;
    
    @Column(name = "PAGE_NAME",length = 20)
    private String pageName;
    
    @Column(name = "PAGE_ADDRESS",length = 200)
    private String pageAddress;
    
    @Column(name = "GROUP_ID")
    private Long groupId;
    
    @Column(name = "PAGE_ORDER",length = 5)
    private Integer pageOrder;

    public Long getPageId() {
        return pageId;
    }

    public void setPageId(Long pageId) {
        this.pageId = pageId;
    }

    public String getPageName() {
        return pageName;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName;
    }

    public String getPageAddress() {
        return pageAddress;
    }

    public void setPageAddress(String pageAddress) {
        this.pageAddress = pageAddress;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Integer getPageOrder() {
        return pageOrder;
    }

    public void setPageOrder(Integer pageOrder) {
        this.pageOrder = pageOrder;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("\"SysPageItemInfo\":{\"pageId\":");
        builder.append(pageId);
        builder.append(", \"pageName\":");
        builder.append(pageName);
        builder.append(", \"pageAddress\":");
        builder.append(pageAddress);
        builder.append(", \"groupId\":");
        builder.append(groupId);
        builder.append(", \"pageOrder\":");
        builder.append(pageOrder);
        builder.append("}");
        return builder.toString();
    }

}
